using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;

namespace mdv.wssSchemaExplorer.WSS
{
    /// <summary>
    /// http://msdn.microsoft.com/en-us/library/aa543767.aspx
    /// </summary>
    public class wssContentTypeRef
    {
        #region Ctors
        public wssContentTypeRef() { }
        public wssContentTypeRef(XmlNode node)
        {
            //required
            if (null != node.Attributes["ID"]) this.ID = node.Attributes["ID"].Value;
        }
        #endregion
        #region Properties
        private String _id;
        [Browsable(true)]
        [Category("Required")]
        [Description("Specifies the ID of the content type. ")]
        public String ID
        {
            get { return _id; }
            set { _id = value; }
        }
        #endregion
        public override string ToString()
        {
            return ID;
        }
    }
}